io.appManager.myApplicationApplicationinterface
Describes an app.
Properties (19)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| allowMultiple⚓︎ | boolean | true | If |
|
| autoStart⚓︎ | boolean | x | If |
|
| available⚓︎ | boolean | x | If |
|
| caption⚓︎ | string | x | Caption of the app. |
|
| container⚓︎ | string | x | Container identifier. |
|
| icon⚓︎ | string | x | App icon. |
|
| iconURL⚓︎ | string | x | URL of the app icon. |
|
| instances⚓︎ | Instance[] | x | Array of objects describing the running app instances. |
|
| isShell⚓︎ | boolean | false | If |
|
| keywords⚓︎ | string[] | x | x | An array of keywords for discovering the app more easily. |
| mode⚓︎ | WindowMode | "unknown" | x | Mode of the app window.
Possible values are |
|
| name⚓︎ | string | x | App name. |
|
| sortOrder⚓︎ | number | x | Sort indicator used when ordering apps in a list. |
|
| title⚓︎ | string | x | App title. |
|
| type⚓︎ | string | x | Type of the app. |
|
| userProperties⚓︎ | PropertiesObject | x | Custom configuration object attached to the app. |
|
| version⚓︎ | string | x | App version. |
|
| windowSettings⚓︎ | WindowSettings | x | Describes the settings for the app window. |
8 Methods
onAvailable()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when the app becomes available.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onChanged()⚓︎
(callback: (app: Application) => any) => void
Notifies when the app configuration is changed.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onInstanceStarted()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onInstanceStopped()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onRemoved()⚓︎
(callback: (app: Application) => any) => void
Notifies when the app is removed.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onUnavailable()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when the app becomes unavailable.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
start()⚓︎
(context?: object, options?: ApplicationStartOptions) => Promise<Instance>
Starts an instance of the app.
Parameters (2)
| Name | Type | Required | Description |
|---|---|---|---|
| context⚓︎ | object | x | Context to be passed to the started app instance. |
| options⚓︎ | ApplicationStartOptions | x | Options for the started app instance that will override the default app configuration. |